//
//  CTHotSpotCell.m
//  ConstellationTalk_0.1
//
//  Created by riley on 15/6/7.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import "CTHotSpotCell.h"
#import "CTHomePageItems.h"
#import "CTDebugManager.h"
#import "CTDeviceFunction.h"


@interface CTHotSpotCell ()
{
    UILabel * classificationLabel;
    
}

@end

@implementation CTHotSpotCell

@synthesize item;

- (void)dealloc
{
    item = nil;
    classificationLabel = nil;
   
    [CTDebugManager showDebugLogInfo:@"dealloc : CTHotSpotCell Is Removed!!!"];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.userInteractionEnabled = YES;
        [self creatCell];
    }
    return self;
}

-(void)creatCell
{
    classificationLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    [classificationLabel setNumberOfLines:0];
    classificationLabel.userInteractionEnabled = YES;
    classificationLabel.font = [UIFont systemFontOfSize:15.0];
    classificationLabel.backgroundColor = [UIColor clearColor];
    classificationLabel.textAlignment = NSTextAlignmentCenter;
    
}


#pragma mark - setter -

-(void)setText:(NSString *)LabelText
{
    
    [classificationLabel setFrame:self.bounds];
    classificationLabel.text = LabelText;
    [self addSubview:classificationLabel];
}


-(void)setColor:(UIColor *)LabelColor
{
    classificationLabel.textColor = LabelColor;
}
@end
